import React from 'react';
//导入要使用的组件
// import { Button } from "antd-mobile";

//导入首页和城市选择两个组件（页面）
import Home from './pages/Home'
import CityList from "./pages/CityList";

import { BrowserRouter as Router, Route, Link} from 'react-router-dom'

function App() {
  return (
      <Router>
        <div className="App">
            {/*项目根组件*/}
            {/*  <Button block color='primary' size='large'>登录</Button>*/}

            {/*配置导航菜单*/}
            <Link to="/home">首页</Link>
            <Link to="/citylist">城市选择</Link>

            {/*配置路由*/}
            <Route path="/home" component={Home}></Route>
            <Route path="/citylist" component={CityList}></Route>
        </div>

      </Router>
  );
}

export default App;
